﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.ModelConfiguration;
using MvcApplication.Entity.CommonForm;

namespace MvcApplication.CommonForm.Data.Mapping
{
    public class Form_Mapping:EntityTypeConfiguration<Form>
    {
        public Form_Mapping()
        {
            this.ToTable("Form");
            this.HasKey(m=>m.Id);
            this.Property(m => m.Name).HasColumnName("NAME");
            this.Property(m => m.SubmitTo).HasColumnName("SUBMITTO");
            this.Property(m => m.DefaultErrorMessage).HasColumnName("DEFAULTERRORMESSAGE");
        }
    }
}
